package com.wink.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 测试加载properties配置
 *
 * @author xw
 * @date 2020-11-24 13:45
 */
@Data
// 指定额外的properties配置文件
@PropertySource("classpath:resouresTest.properties")
// 指定前缀匹配
@ConfigurationProperties(prefix = "person")
// srping 管理bean
@Configuration
public class PersonConfig {

    private String name;
    private Integer age;

}
